package com.project.service.impl.front.preSchool;

import java.util.List;

import com.project.dao.IMenuDao;
import com.project.dao.IMenuRelationDao;
import com.project.dao.bean.Menu;
import com.project.service.front.preSchool.IPreSchoolService;
import com.project.service.impl.BaseServiceImpl;
import com.project.webapp.form.front.preSchool.PreSchoolForm;

public class PreSchoolServiceImpl extends BaseServiceImpl implements IPreSchoolService {
    private IMenuDao         menuDao;
    private IMenuRelationDao menuRelationDao;

    @Override
    public List<Menu> getMenuByCondition(PreSchoolForm preSchoolForm) throws Exception {
        List<Menu> list = menuDao.getMenuByCondition(preSchoolForm);
        return list;
    }
    
    public void setMenuDao(IMenuDao menuDao) {
        this.menuDao = menuDao;
    }
    
    public void setMenuRelationDao(IMenuRelationDao menuRelationDao) {
        this.menuRelationDao = menuRelationDao;
    }

	@Override
	public List<Menu> getMenuForCourse(String menuCode) throws Exception {
		
		return menuDao.getMenuForCourse(menuCode);
	}

}
